/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.softwareprincipals.lsp.obey.model;

/**
 *
 * @author Matthew
 */
public class Paying extends NewHouse{

    private boolean paidUp;

    public boolean isPaidUp() {
        return paidUp;
    }

    public void setPaidUp(boolean paidUp) {
        this.paidUp = paidUp;
    }

    public Paying(int people, boolean paid) {
        super(people, paid);
    }

    public Paying() {
    }
    
    @Override
    public boolean occupied(int people) {
        if(people>0)
           return false;
       else 
           return true;
    }

    @Override
    public boolean notOccupied() {
         if((notOccupied() == true)&&(paid==paidUp)){
            return true;
        }else
            return false;
    }
    
}
